<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>父组件和子组件</title>
  </head>
  <body>
    <div id="app">
      <mycpn></mycpn>
      <mycpn></mycpn>
      <mycpn></mycpn>
    </div>
    <div id="App2">
      <mycpn></mycpn>
      <mycpn></mycpn>
      <mycpn></mycpn>
    </div>
    <script src="../vue.js"></script>
    <script>
      //1.创建组件构造器
      const cpnC = Vue.extend({
        template: `<div>
          <h2>我是内容吗？</h2>
          <h2>我是标题</h2>
          <h3>我是哈哈</h3>
        </div>`,
      });

      const app = new Vue({
        el: "#app",
        data: {
          message: "hello",
        },
      });
    </script>
  </body>
</html>
